package com.lsa.letcode.the11.containerMostWater;

import org.junit.Assert;
import org.junit.Test;


public class ContainerMostWaterTest {
	@Test
	public void test() {
		//				   0 1 2 3 4 5 6 7 8 9 10 11	
		test(11, new int[]{1,1,1,1,1,1,1,1,3,3,1, 3});
		
		//                0 1 2 3 4 5 
		test(15, new int[]{1,5,1,2,6,2});
		
		test(67, new int[]{1,2,3,67,67,3,5,2});
	}

	private void test(int area, int[] height) {
		Solution s = new Solution();
		Assert.assertEquals(area, s.maxArea(height));
	}
}
